function db(sql,callback){
	const mysql=require('mysql');
	const conn=mysql.createConnection({
		host:'localhost',
		user:'root',
		password:'root',
		database:'sy'
	});
	conn.connect();
	conn.query(sql,callback)
	conn.end();
		
	
}
//导出
module.exports=db;